<template>
  <div id="app" :data-theme="theme">
    <router-view />
  </div>
</template>
<script>
export default {
  data() {
    return {
      theme: 'light' // 默认主题  
    };
  },
  methods: {
    toggleTheme() {
      this.theme = this.theme === 'light' ? 'dark' : 'light';
    }
  }
};  
</script>
<style lang="scss">
* {
  margin: 0;
  padding: 0;
  // cursor: pointer;
}
.item,span{
  cursor: pointer;
}
</style>
